package pl.kosmowska.ewelina.client.views.widgets.events;


import com.google.gwt.event.shared.GwtEvent;

public class ItemAddedEvent extends GwtEvent<ItemAddedHandler> {
 private static final Type TYPE = new Type<ItemAddedHandler>();
 
 //private final ListItem listItem;
 
// public ItemAddedEvent(ListItem listItem) {
//  this.listItem = listItem;
// }
 
 public static Type getType() {
  return TYPE;
 }
 
// /** @returns The item added to the model */
// public ListItem getListItem() {
//  return listItem;
// }
 
 @Override
 protected void dispatch(ItemAddedHandler handler) {
  handler.onItemAdded(this);
 }

 @Override
 public com.google.gwt.event.shared.GwtEvent.Type getAssociatedType() {
  return TYPE;
 }
}